package com.camps.sdk.encrypt;

import com.camps.sdk.common.Constants;

/**
 * @Author ldaoliang
 * @Date create in 10:07 2021/9/1
 * @Description 参数建造者工厂
 */
public class ParameterBuilderFactory {

    /**
     * 构建指令的对象工厂
     *
     * @param cmd
     * @return
     */
    static BuildCommand createBuildCommand(String cmd) {
        BuildCommand buildCommand = null;
        if (Constants.CMD_ADJUST_VOLUME.equals(cmd)) {
            buildCommand = new SetVolumeCommand();
        } else if (Constants.CMD_BATCH_SET_WHITE_CALL.equals(cmd)) {
            buildCommand = new BatchWhiteCallCommand();
        } else if (Constants.CMD_CHOOSE_ID.equals(cmd)) {
            buildCommand = new ChooseIdCommand();
        } else if (Constants.CMD_CLEAR_SIM.equals(cmd)) {
            buildCommand = new ClearSimCommand();
        } else if (Constants.CMD_DEFAULT_ADDRESS.equals(cmd)) {
            buildCommand = new DefaultIpAndPortCommand();
        } else if (Constants.CMD_TEMP_ADDRESS.equals(cmd)) {
            buildCommand = new TempIpAndPortCommand();
        }else if (Constants.CMD_GET_ICCID.equals(cmd)) {
            buildCommand = new GetIccidCommand();
        } else if (Constants.CMD_GET_IMEI.equals(cmd)) {
            buildCommand = new GetImeidCommand();
        } else if (Constants.CMD_GET_PARAM.equals(cmd)) {
            buildCommand = new GetParamCommand();
        } else if (Constants.CMD_SET_NO_DISTURB.equals(cmd)) {
            buildCommand = new NoDisturbCommand();
        } else if (Constants.CMD_SET_NO_DISTURB_SWITCH.equals(cmd)) {
            buildCommand = new NoDisturbSwitchCommand();
        } else if (Constants.CMD_SET_PDOP.equals(cmd)) {
            buildCommand = new PDOPCommand();
        } else if (Constants.CMD_QUERY_LOCATION.equals(cmd)) {
            buildCommand = new QueryLocationCommand();
        } else if (Constants.CMD_RESET.equals(cmd)) {
            buildCommand = new ResetCommand();
        } else if (Constants.CMD_RESTART.equals(cmd)) {
            buildCommand = new RestartCommand();
        } else if (Constants.CMD_SET_M1_CARD.equals(cmd)) {
            buildCommand = new SetM1Command();
        } else if (Constants.CMD_SET_MONITOR_PHONE.equals(cmd)) {
            buildCommand = new SetMonitorPhoneCommand();
        } else if (Constants.CMD_SET_SLEEP_TIME.equals(cmd)) {
            buildCommand = new SetSleepModeCommand();
        } else if (Constants.CMD_SET_SOS_PHONE.equals(cmd)) {
            buildCommand = new SetSosCommand();
        } else if (Constants.CMD_SHUTDOWN.equals(cmd)) {
            buildCommand = new ShutDownCommand();
        } else if (Constants.CMD_SOS_SWITCH.equals(cmd)) {
            buildCommand = new SosSwitchCommand();
        } else if (Constants.CMD_SET_WHITE_CALL.equals(cmd)) {
            buildCommand = new WhiteCallCommand();
        } else if (Constants.CMD_SET_WORK_MODE.equals(cmd)) {
            buildCommand = new WorkModeCommand();
        } else if (Constants.CMD_GET_STEP.equals(cmd)) {
            buildCommand = new GetStepCommand();
        } else if (Constants.CMD_WHITE_CALL_SWITCH.equals(cmd)) {
            buildCommand = new WhiteCallSwitchCommand();
        } else {
            buildCommand = null;
        }
        return buildCommand;
    }


}
